﻿@model Physis.Client.Models.Insurer.ProductModel

@{ Layout = "~/Views/Configuration/ConfigurationItemMaster.cshtml"; }

<script type="text/javascript" src="~/Scripts/Application/Insurer/Product.js"></script>

@section ItemPropertyTabsContent_GeneralProperties {

    <table style="border-collapse:separate; border-spacing: 5px;" > 

        <thead><tr><th style="width: 100px"></th><th style="width: 100px"></th><th></th></tr></thead>
        
        <tr>

            <td style="font-weight: bold;">Program:</td>

            <td colspan="2">@Html.DropDownListFor(model => model.Product.ProgramId, Model.ProgramSelectList, new { style="width: 250px;" })</td>

        </tr>

        <tr>
            
            <td style="font-weight: bold;">Unique Id:</td>

            <td>@Html.TextBoxFor(model => model.Product.UniqueId, new { style="width: 100px;", maxlength="20" })</td>

            <td><div class="ui-state-default ui-corner-all" style="width: 16px; cursor: help;" title="(optional) Unique Business Identifier for the Product. If missing, will automatically be set to the Id of the Entity."><span class="ui-icon ui-icon-help"></span></div></td>

        </tr>

        <tr>

            <td style="font-weight: bold;">Legacy Id:</td>

            <td>@Html.TextBoxFor(model => model.Product.LegacyId, new { style="width: 100px;", maxlength="20" })</td>

            <td><div class="ui-state-default ui-corner-all" style="width: 16px; cursor: help;" title="(optional) Unique Identifier of the Product in the original Legacy System. Can be used for mapping data between systems."><span class="ui-icon ui-icon-help"></span></div></td>

        </tr>


    </table>
    
}

@section ItemPropertyTabs {
    
    <li><a href="#PropertyTab_BenefitPlans">Benefit Plans</a></li>
}

@section ItemPropertyTabsContent {
    
    <div id="PropertyTab_BenefitPlans" class="PropertyTab TextNormal" style="padding: 8px;">
        
        <div style="padding: 8px;">

            <table class="PropertyTable">
        
                <thead><tr><th style="width: 125px"></th><th style="width: 250px"></th><th></th></tr></thead>
                
                <tr><td colspan="3">
                    
                    <p style="font-weight: normal; margin: 4px;">Users can belong to multiple roles. This will aggregate the available permissions 
                        
                        for the user, but a denied permssion always takes precedence. Denied permissions in any role denies the permissions for the 
                        
                        user even if explicitly granted through another role.  

                    </p> 

                </td></tr>

            </table>

        </div>

        <div style="margin: 8px;">

            <table id="BenefitPlansGrid"></table>

        </div>

    </div>
    
}